package com.sllp.C71S3TsllpShop.bean;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

public class Product {
 
	
	private Integer id;

    private String name;

    private BigDecimal marketPrice;

    private Double discount;

    private Timestamp shelveTime;

    private Timestamp modifyTime;

    private Integer buyNum;

    private Integer type;

    private Integer business;

    private Integer state;

    private String descriptioin;
    
    private Integer isFav;

    private List<Image> image ;
    
    private Business business2;
    
    private List<Specs> specs;
    
    private List<Comment> comment;
    
    private List<User> user;

    private List<BigType> bigType;
    
    private SmallType smallType;

//    private Favorite favorite;

	public Product(Integer id, String name, BigDecimal marketPrice, Double discount, Timestamp shelveTime, Timestamp modifyTime, Integer buyNum, Integer type, Integer business, Integer state) {
        this.id = id;
        this.name = name;
        this.marketPrice = marketPrice;
        this.discount = discount;
        this.shelveTime = shelveTime;
        this.modifyTime = modifyTime;
        this.buyNum = buyNum;
        this.type = type;
        this.business = business;
        this.state = state;
    }

    public Product(Integer id, String name, BigDecimal marketPrice, Double discount, Timestamp shelveTime, Timestamp modifyTime, Integer buyNum, Integer type, Integer business, Integer state, String descriptioin) {
        this.id = id;
        this.name = name;
        this.marketPrice = marketPrice;
        this.discount = discount;
        this.shelveTime = shelveTime;
        this.modifyTime = modifyTime;
        this.buyNum = buyNum;
        this.type = type;
        this.business = business;
        this.state = state;
        this.descriptioin = descriptioin;
    }

    public Product() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Timestamp getShelveTime() {
        return shelveTime;
    }

    public void setShelveTime(Timestamp shelveTime) {
        this.shelveTime = shelveTime;
    }

    public Timestamp getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Timestamp modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getBuyNum() {
        return buyNum;
    }

    public void setBuyNum(Integer buyNum) {
        this.buyNum = buyNum;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getBusiness() {
        return business;
    }

    public void setBusiness(Integer business) {
        this.business = business;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getDescriptioin() {
        return descriptioin;
    }

    public void setDescriptioin(String descriptioin) {
        this.descriptioin = descriptioin == null ? null : descriptioin.trim();
    }


 	/*public Favorite getFavorite() {
 		return favorite;
 	}

 	public void setFavorite(Favorite favorite) {
 		this.favorite = favorite;
 	}*/


    public List<Image> getImage() {
		return image;
    }
    
	public void setImage(List<Image> image) {
		this.image = image;
	}

	public Business getBusiness2() {
		return business2;
	}

	public void setBusiness2(Business business2) {
		this.business2 = business2;
	}

	public List<Specs> getSpecs() {
		return specs;
	}

	public void setSpecs(List<Specs> specs) {
		this.specs = specs;
	}

	public List<Comment> getComment() {
		return comment;
	}

	public void setComment(List<Comment> comment) {
		this.comment = comment;
	}


	public SmallType getSmallType() {
		return smallType;
	}

	public void setSmallType(SmallType smallType) {
		this.smallType = smallType;
	}

	public List<User> getUser() {
		return user;
	}

	public void setUser(List<User> user) {
		this.user = user;
	}

	public List<BigType> getBigType() {
		return bigType;
	}

	public void setBigType(List<BigType> bigType) {
		this.bigType = bigType;
	}
	public Integer getIsFav() {
		return isFav;
	}

	public void setIsFav(Integer isFav) {
		this.isFav = isFav;
	}


}